﻿using Microsoft.AspNetCore.Builder;

namespace Demo.Abp.Extension;

public static class CurrentUserExtensions
{
    /// <summary>
    /// 注册当前用户中间件
    /// </summary>
    public static void UseCurrentUser(this IApplicationBuilder app)
    {
        app.UseMiddleware<CurrentUserMiddleware>();
    }
}